<div class="mainCon">
    <div class="breadCurmbs"><a href="#">管理员编辑</a></div>
    <div class="box" id="edit">
        <font color="red"><?php if (isset($error)) {
                echo $error;
            } ?></font>

        <form
            action="<?php echo site_url('front/member/member_edit'); ?>/<?php if (!empty($one['id'])) echo $one['id']; ?>"
            method="post" enctype="multipart/form-data">
            <table cellpadding="0" cellspacing="0" border="0" class="table-3">
                <tr>
                    <td class="num1">用户名：</td>
                    <td class="num2">
                        <input type="text" placeholder="请输入用户名" name="name" value="<?php echo $one['name']; ?>"/>
                        <span class="help-inline"><?php echo form_error('name'); ?></span>
                    </td>
                </tr>
                <tr>
                    <td class="num1">密码：</td>
                    <td class="num2">
                        <input type="password" placeholder="请输入密码" name="password"
                               value="<?php echo $one['password']; ?>"/>
                        <span class="help-inline"><?php echo form_error('password'); ?></span>
                    </td>
                </tr>
                <tr>
                    <td class="num1">确认密码：</td>
                    <td class="num2">
                        <input type="password" placeholder="请确认密码" name="cpassword"
                               value="<?php echo $one['password']; ?>"/>
                        <span class="help-inline"><?php echo form_error('cpassword'); ?></span>
                    </td>
                </tr>
                <tr>
                    <td class="num1">性别：</td>
                    <td class="num2">
                        <input type="radio" name="authority"
                               value="0" <?php if ($one['gender'] == 0) echo 'checked'; ?>/>男 &nbsp;&nbsp;
                        <input type="radio" name="authority"
                               value="1" <?php if ($one['gender'] == 1) echo 'checked'; ?>/> 女 &nbsp;&nbsp;
                        <span class="help-inline"><?php echo form_error('gender'); ?></span>
                    </td>
                </tr>
                <tr>
                    <td class="num1">出生日期：</td>
                    <td class="num2">
                        <input type="text" name="birth_date" class="Wdate" value="<?php echo $one['birth_date']; ?>"
                               onClick="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd'})"/>
                        <span class="help-inline"><?php echo form_error('birth_date'); ?></span>
                    </td>
                </tr>
                <tr>
                    <td class="num1">邮箱：</td>
                    <td class="num2">
                        <input type="text" class="input-xxlarge" placeholder="请输入个人邮箱" name="email"
                               value="<?php echo $one['email']; ?>"/>
                        <span class="help-inline"><?php echo form_error('email'); ?></span>
                    </td>
                </tr>
                <tr>
                    <td class="num1">手机号：</td>
                    <td class="num2">
                        <input type="text" class="input-xxlarge" placeholder="请输入手机号" name="phone"
                               value="<?php echo $one['phone']; ?>"/>
                        <span class="help-inline"><?php echo form_error('phone'); ?></span>
                    </td>
                </tr>
                <tr>
                    <td class="num1">个人链接：</td>
                    <td class="num2">
                        <input type="text" class="input-xxlarge" placeholder="请输入个人链接" name="url"
                               value="<?php echo $one['url']; ?>"/>
                        <span class="help-inline"><?php echo form_error('url'); ?></span>
                    </td>
                </tr>
                <tr>
                    <td class="num1">地址：</td>
                    <td class="num2">
                        <input type="text" class="input-xxlarge" placeholder="请输入个人地址" name="address"
                               value="<?php echo $one['address']; ?>"/>
                        <span class="help-inline"><?php echo form_error('address'); ?></span>
                    </td>
                </tr>
                <tr>
                    <td class="num1">头像：</td>
                    <td class="num2">
                        <img src="<?php echo base_url(); ?>upload/avator/<?php echo $one['img']; ?>" name="img"/>
                        <input type="hidden" name="img" src="<?php echo $one['img']; ?>"
                    </td>
                </tr>
                <tr>
                    <td class="num1">修改头像：</td>
                    <td class="num2">
                        <input type="file" name="img"/>
                    </td>
                </tr>
                <tr>
                    <td class="num1">上次登入ip：</td>
                    <td class="num2">
                        <input type="text" class="input-xxlarge" name="last_login_ip"
                               value="<?php echo $one['last_login_ip']; ?>" disabled="disabled"/>
                    </td>
                </tr>
                <tr>
                    <td class="num1">上次登入时间：</td>
                    <td class="num2">
                        <input type="text" class="input-xxlarge" name="last_login_time"
                               value="<?php echo $one['last_login_time']; ?>" disabled="disabled"/>
                    </td>
                </tr>
                <tr>
                    <td class="num1">注册时间：</td>
                    <td class="num2">
                        <input type="text" name="reg_time" class="Wdate" value="<?php echo $one['reg_time']; ?>"
                               onClick="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd H:mm:ss'})"/>
                    </td>
                </tr>
                <tr>
                    <td class="num1"></td>
                    <td class="num2">
                        <input type="submit"
                               href="<?php echo site_url('front/member/member_edit'); ?>/<?php if (!empty($one['id'])) echo $one['id']; ?>"
                               class="btn btn-danger" value="修改"/>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
</div>